<!--<table class="table table-bordered" style="background:#fff">
    <thead>
        <tr>
            <th>#</th>
            <th>Tên video</th>
            <th>Ngày tạo</th>
            <th>Video</th>
        </tr>
    </thead>
    <tbody>
  <?php
        $i = 1;
        foreach ($content as $k) {
            echo "<tr>";
            echo "<td>" . $i . "</td>";
            echo "<td>" . $k->name . "</td>";
            echo "<td>" . $k->create_time . "</td>";
            echo "<td>" . $k->url . "</td>";
            echo "</tr>";
            $i++;
        }
        ?>



    </tbody>
</table>-->

<form name="adminForm" id="adminForm" action="<?=Yii::app()->getBaseUrl(true)?>/sysadmin/rvideo/load" method="post">
    <?php
    $this->widget('bootstrap.widgets.TbGridView', array(
        'id' => 'RVideo-grid',
        'type' => 'striped bordered condensed',
        'filter' => $model,
        'dataProvider' => $model->search(),
        'selectableRows' => 2, // multiple rows can be selected
        'template' => "{items}{summary}{pager}",
        'columns' => array(
            array(
                'class' => 'CCheckBoxColumn',
                'id' => 'cid',
                'value' => '$data->id',
                'headerHtmlOptions' => array(
                    'style' => 'width:25px;',
                ),
            ),
            array('name' => 'id', 'header' => 'id', 'headerHtmlOptions' => array(
                    'class' => 'span1',
                ),),
            array('name' => 'name', 'header' => 'name'),
            array('name' => 'url', 'header' => 'url'),
            array(
                'name' => 'state',
                'header' => 'state',
                'value' => '@$data->state ? "Publish" : "Unpublish"',
                'filter' => CHtml::activeDropDownList($model, 'state', array(1 => 'Publish', 0 => 'Unpublish'), array('empty' => 'None', 'class' => 'span2')),
                'headerHtmlOptions' => array(
                    'class' => 'span2',
                ),
            ),
        ),
    ));
    ?>
</form>